package com.tt.jshb.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by tu on 2018/11/29.
 */

public class PayBean extends BaseRep implements Parcelable {

    /**
     * data : {"zf":"1","url":"https://qr.hemayun.com/wapapi?client_sn=1543501888487&operator=condoms&payway=1&return_url=http://test001.lejrj.com/xqnotify&subject=condoms&terminal_sn=101000430000061203&total_amount=300&sign=F411C858B09BBDA3CCC66CB9B05F2F7A"}
     */

    private DataBean data;

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean implements Parcelable {
        /**
         * zf : 1
         * url : https://qr.hemayun.com/wapapi?client_sn=1543501888487&operator=condoms&payway=1&return_url=http://test001.lejrj.com/xqnotify&subject=condoms&terminal_sn=101000430000061203&total_amount=300&sign=F411C858B09BBDA3CCC66CB9B05F2F7A
         */

        private String zf;
        private String url;

        public String getZf() {
            return zf;
        }

        public void setZf(String zf) {
            this.zf = zf;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.zf);
            dest.writeString(this.url);
        }

        public DataBean() {
        }

        protected DataBean(Parcel in) {
            this.zf = in.readString();
            this.url = in.readString();
        }

        public static final Creator<DataBean> CREATOR = new Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel source) {
                return new DataBean(source);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeParcelable(this.data, flags);
    }

    public PayBean() {
    }

    protected PayBean(Parcel in) {
        this.data = in.readParcelable(DataBean.class.getClassLoader());
    }

    public static final Parcelable.Creator<PayBean> CREATOR = new Parcelable.Creator<PayBean>() {
        @Override
        public PayBean createFromParcel(Parcel source) {
            return new PayBean(source);
        }

        @Override
        public PayBean[] newArray(int size) {
            return new PayBean[size];
        }
    };
}
